#include <REGX52.H>



void Delay(unsigned int xms)	//@11.0592MHz
{
	unsigned char data i, j;

	while(xms--)
	{
		i = 2;
		j = 199;
		do
		{
			while (--j);
		} while (--i);
	}
}



void main()
{
	while(1)
	{
		P2=0xFE;
		Delay(1000);
		P2=0xFD;
		Delay(1000);
		P2=0xFB;
		Delay(500);
		P2=0xF7;
		Delay(500);
		P2=0xEF;
		Delay(500);
		P2=0xDF;
		Delay(500);
		P2=0xBF;
		Delay(500);
		P2=0x7F;
		Delay(500);
	}

	
}




